package com.cuit.xsc.weishare.util;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

import com.cuit.xsc.weishare.WeiShareApplication;

public class FileUtil
{

	public static String path = WeiShareApplication.getInstance().getCacheDir().getPath();//"/sdcard/"; //getCacheDir().getPath();
	public static String imgFilePath = path  + '/' + "image";
	
/*	public static boolean isExistFile(String name)
	{
		File file = new File(name);
		if(file.exists())
		{
			return true;
		}
		return false;
	}
	
	public static void createFile(String name,String content)
	{
		OutputStream out = null;
        try {	        	
            File f = new File(name);
            if (f.exists()) {
                f.delete();
            }
            
            f.createNewFile();
            out = new FileOutputStream(f);
            out.write(content.getBytes());
            out.flush();
        } catch (Throwable ignore) {

        } finally {
            if (out != null) {
                try {
                    out.close();
                } catch (IOException e) {
                }
            }
        }	
	}*/
	
	
	
	
}
